package org.oexam.ostudy.facade;

import java.sql.SQLException;

import javax.naming.NamingException;

import org.oexam.ostudy.facade.struct.LoggedUserDetails;
import org.oexam.ostudy.facade.struct.LoginPageDetails;
import org.oexam.ostudy.sl.Authentication;
import org.oexam.ostudy.sl.General_Announcements;



public class LoginPage {

	public LoginPageDetails getLoginPageDetails() throws SQLException,
			NamingException {

		General_Announcements general_Headlines = new General_Announcements();
		LoginPageDetails loginPageDetails = new LoginPageDetails();

		loginPageDetails.setGeneral_HeadlinesDtls(general_Headlines
				.getHeadlines());

		return loginPageDetails;
	}
	
	public LoggedUserDetails authenticateUser(String userName, String password){
		
		return new Authentication().authenticate(userName, password);
	}


	
	

}
